package com.atguigu.boot.bean;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

/**
 * ClassName: Boss
 * Package: com.atguigu.boot.bean
 * Description:
 *
 * @Author Root
 * @Create 2023/5/25 16:30
 * @Version 1.0
 */
@Profile("prod")
@Component
@ConfigurationProperties("person")
@Data
public class Boss implements Person {
    private String name;
    private Integer age;

}
